package com.ddy.test.statics;

/**
 * Created by ddy on 2017/12/15.
 */
public class StaticTestDemo extends Base{

    static{
        System.out.println("test static");//2
    }

    public StaticTestDemo(){
        System.out.println("test constructor");
    }

    public static void main(String[] args) {
        new StaticTestDemo();
    }
}

class Base{

    static{
        System.out.println("base static");//1
    }

    public Base(){
        System.out.println("base constructor");
    }
}
